package com.example.yian.repository;

import com.example.yian.entity.CaptchaEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;

@Repository
public interface CaptchaRepository extends JpaRepository<CaptchaEntity, Long> {
    Optional<CaptchaEntity> findByCode(String code);
}